{template 'common/header'}
{template 'nav'}

<div class="panel panel-default">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
			<input type="hidden" name="m" value="meepo_online" />
			<input type="hidden" name="do" value="fans_manage" />
            
       
           
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">粉丝昵称</label>
				<div class="col-xs-12 col-sm-8 col-lg-8">
					<input class="form-control" name="nickname" id="" type="text" value="{$_GPC['nickname']}" placeholder="请输入粉丝昵称">
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-sm-8 col-lg-9 col-xs-12">
					<input class="btn btn-primary" id="" type="submit" value="搜索">
				</div>
			</div>
		</form>
	</div>
</div>

<div class="panel panel-default">
	<div class="panel-heading">
		粉丝管理
	</div>
	<div class="panel-body">
	<form action="" method="post">
		<table  class="table table-striped">
			<thead>
				<tr>
					<th style="width:5%;">选择</th>
					<th style="width:10%;">粉丝信息</th>
					<th style="width:15%;">真实姓名</th>
					<th style="width:15%;">手机号码</th>
					<th style="width:15%;">地址</th>
					<th style="width:20%;">注册时间</th>
					<th style="width:20%;">最近登录时间</th>
					<th style="width:20%;">操作</th>
				</tr>
			</thead>
			<tbody>
			{loop $fans $row}
				<tr>
					<td><input type="checkbox" name="select[]" value="{$row['id']}" /></td>
					
					<td>
					<div>
						<img src="{$row['avatar']}" width=60px height=60px />
						<div>
						{$row['nickname']}
						</div>
					</div>
					</td>
					<td>
						{if $row['realname']}{$row['realname']}{else}未填写{/if}
					</td>
					<td>
						{if $row['mobile']}{$row['mobile']}{else}未填写{/if}
					</td>
					<td>
						{if $row['address']}{$row['address']}{else}未填写{/if}
					</td>
					<td>
						{php echo date('Y-m-d H:i:s',$row['createtime'])}
					</td>
					<td>
						{php echo date('Y-m-d H:i:s',$row['newjointime'])}
					</td>
					<td>
						
						<a class="btn btn-default" title="删除" href="{php echo $this->createWebUrl('fans_manage',array('op'=>'del','id'=>$row['id']))}" onclick="return confirm('删除将无法恢复，确认吗？');return false;">
							<i class="fa fa-times"></i>
						</a>
					</td>
				</tr>
			{/loop}
			<tr>
			<td style="width:50px;" class="row-first"><input type="checkbox" onclick="selectall(this, 'select');" /></td>
			<td colspan="4">
								
				<input type="submit" name="down" value="导出" class="btn btn-success" />
				<input type="submit" name="downall" value="导出全部" class="btn btn-success" />			<input type="submit" name="del_some" value="删除" class="btn btn-danger" />			
				<input type="hidden" name="token" value="{$_W['token']}" />
								
			</td>
			</tr>
			</tbody>
		</table>
		{$pager}
	</div>
	</form>
</div>
<script src="{MODULE_URL}template/mobile/js/jquery-1.7.2.min.js"></script>
<script>
	function selectall(obj, name){
		$('input[name="'+name+'[]"]:checkbox').each(function() {
			$(this).attr("checked", $(obj).attr('checked') ? true : false);
		});
	}
</script>
{template 'common/footer'}